/**
 * 
 */
package com.haisen.lee.serviceimpl;

import java.net.URL;

import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node;

import com.haisen.lee.domain.FormDictionary;
import com.haisen.lee.service.IDomParser;
import com.haisen.lee.util.DOMParserType;

/**
 * @author Haisen Lee
 * 
 */
public class FrameDomParserImpl implements IDomParser {

	private URL url;
	private NamedNodeMap htmlAttributes = null;
	private static final DOMParserType selfDomParser = DOMParserType.FRAMESET;

	/**
	 * 
	 */
	public FrameDomParserImpl() {
		this.init();
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.haisen.lee.service.IDomParser#contentExtractor(org.w3c.dom.Node)
	 */
	public void contentExtractor(Node root) throws Exception {
		// TODO Auto-generated method stub

	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.haisen.lee.service.IDomParser#init()
	 */
	public void init() {
		// TODO finish the init method

	}

	public NamedNodeMap getHtmlAttributes() {
		return htmlAttributes;
	}

	@Override
	public void setUrl(URL url) {
		this.url = url;

	}
	
	@Override
	public String toString() {
		return "selfDomParserType : " + selfDomParser + "\t" + "url : " + url;
	}

	@Override
	public void setFormDictionary(FormDictionary formDictionary) {
		// TODO Auto-generated method stub
		
	}

}
